package com.patterns.demo.templateMethod;

/**
 * Author: SamGroves
 * <p>
 * Description:
 * <p>
 * Date: 2017/12/19
 */
public class Test {

    public static void main(String[] args) {
        String exp = "8+8";
        AbstractCaculator caculator = new Plus();
        int result = caculator.calculate(exp, "\\+");
        System.out.println(result);
    }
}
